#include <iostream>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "CryptoUtil.h"

using std::cout;
using std::endl;
using std::string;

void test1(){
    int fd =::open("file.txt",O_RDONLY); 
    string sha = CryptoUtil::hash_file(fd);
    cout<<sha<<"\n";
    return ;
}


int main()
{
    test1();
    return 0;
}

